package com.dehui.traders.ui.freightspace;

import com.dehui.traders.BR;
import com.dehui.traders.R;
import com.dehui.traders.databinding.FragmentFreightSpaceBinding;
import com.dehui.traders.ui.base.AppFragment;

/**
 * Created by hqq on 18.4.19.
 */
public class FreightSpaceFragment extends AppFragment<FragmentFreightSpaceBinding,FreightSpaceViewModel> {

    private FreightSpaceViewModel viewModel;

    @Override
    public int initContentView() {
        return R.layout.fragment_freight_space;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }


    @Override
    public FreightSpaceViewModel initViewModel() {
        viewModel = new FreightSpaceViewModel(getContext());
        return viewModel;
    }

    @Override
    public void initData() {
        initToolbarValue(R.string.positions);
        viewModel.initChart(binding.mycombinedchartKLine);
    }
}
